package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 省市区街道信息对象 sys_district
 * 
 * @author ruoyi
 * @date 2024-05-09
 */
public class SysDistrict extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 父级ID */
    @Excel(name = "父级ID")
    private Long pid;

    /** 层级 */
    @Excel(name = "层级")
    private Long deep;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 拼音首字母 */
    @Excel(name = "拼音首字母")
    private String pinyinPrefix;

    /** 拼音 */
    @Excel(name = "拼音")
    private String pinyin;

    /** 扩展ID */
    @Excel(name = "扩展ID")
    private String extId;

    /** 扩展名 */
    @Excel(name = "扩展名")
    private String extName;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer del;

    /** 版本号 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "版本号", width = 30, dateFormat = "yyyy-MM-dd")
    private Date version;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setDeep(Long deep) 
    {
        this.deep = deep;
    }

    public Long getDeep() 
    {
        return deep;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPinyinPrefix(String pinyinPrefix) 
    {
        this.pinyinPrefix = pinyinPrefix;
    }

    public String getPinyinPrefix() 
    {
        return pinyinPrefix;
    }
    public void setPinyin(String pinyin) 
    {
        this.pinyin = pinyin;
    }

    public String getPinyin() 
    {
        return pinyin;
    }
    public void setExtId(String extId) 
    {
        this.extId = extId;
    }

    public String getExtId() 
    {
        return extId;
    }
    public void setExtName(String extName) 
    {
        this.extName = extName;
    }

    public String getExtName() 
    {
        return extName;
    }
    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }
    public void setVersion(Date version) 
    {
        this.version = version;
    }

    public Date getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("deep", getDeep())
            .append("name", getName())
            .append("pinyinPrefix", getPinyinPrefix())
            .append("pinyin", getPinyin())
            .append("extId", getExtId())
            .append("extName", getExtName())
            .append("del", getDel())
            .append("version", getVersion())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
